{{extend "req_layout.html"}}

{{block sub_menu}}
{{sub_menu(menu_items, 'ticket', 'question')}}
{{end}}

{{block content_main}}
{{use "jquery", css_only=True}}
{{use "facebox"}}
{{use "jqutils", ajaxForm=True}}
{{link "ticket/ticket.css"}}
<style type="text/css">
.article {padding:10px;border:1px solid #ccc;}
.article .title {margin: 0 auto;}
.article .title h3 {padding: 0 0 0 120px;text-align: left;}
.article .title .title-info {padding: 0 0 0 120px;text-align: left; color:#999;}
.article span.normal {color:#000};
div.period {float:right;margin-top:-25px;margin-right:5px;}
.article fieldset {padding:10px;margin:10px;color:#333;border-top:#06c solid 1px;} 
.article fieldset.normal {padding:10px;margin:10px;color:#333;border:#06c solid 1px;} 
.article legend {color:#06c;font-weight:800;background:#fff;} 
</style>
{{from uliweb.utils.textconvert import text2html}}
<div class="content">
    <div class="article ui-corner-all">
        <div class="title">
            <h3>问题：{{=object.title}}</h3>
            <div class="title-info">
                由 <span>{{=object.submitter}}</span> 于 <span>{{=object.submit_date}}</span> 提出 |
                <span class="normal"><b>分类：</b></span><span class="tag">{{=object.get_display_value('category')}}</span> |
                <span class="normal"><b>状态：</b></span><span id="status" class="tag">{{=object.get_display_value('status')}}</span> |
                <span class="normal"><b>优先级：</b></span><span class="tag">{{=object.get_display_value('priority')}}</span> |
            </div>
        </div>
        <fieldset class="normal">
          <legend>问题描述：</legend>
            <div>{{<< text2html(object.content) or '无内容'}}</div>
          </legend>
        </fieldset>
        <fieldset class="normal">
          <legend>最终解决方案：</legend>
            <div>{{<< text2html(object.solve_desc) or '无内容'}}</div>
          </legend>
        </fieldset>
        <fieldset class="normal">
          <legend>基本信息：</legend>
            <table class="table" width="100%">
                <tr>
                    <td width="50%"><b>进度情况：</b>{{=view_obj.result_fields['progress']['display']}}</td>
                    <td width="50%"><b>责任人或单位：</b>{{=object.assigned}}</td>
                </tr>
                <tr>
                    <td><b>计划关闭日期：</b>{{=object.get_display_value('plan_finish_date')}}</td>
                    <td><b>实际关闭日期：</b><span id="finish_date">{{=object.get_display_value('finish_date')}}</span></td>
                </tr>
                <tr>
                    <td><b>关联准开发需求：</b>{{<< view_obj.result_fields['requirement']['display']}}</td>
                    <td><b>关联任务：</b>{{<< view_obj.result_fields['task']['display']}}</td>
                </tr>
                <tr>
                    <td>
                        <b>所属条线：</b>{{<< view_obj.result_fields['tx']['display']}}
                        <b>所属开发中心：</b>{{<< view_obj.result_fields['kfzx']['display']}}
                        <b>所属系统：</b>{{<< view_obj.result_fields['owner_sys']['display']}}
                    </td>
                    <td><b>责任系统：</b>{{<< view_obj.result_fields['systems']['display']}}</td>
                </tr>
                <tr>
                    <td>
                        <b>所有人：</b>{{<< view_obj.result_fields['owner']['display']}}
                        <b>修改人：</b>{{<< view_obj.result_fields['modified_user']['display']}}
                    </td>
                    <td>
                        <b>修改时间：</b>{{<< view_obj.result_fields['modified_date']['display']}}
                    </td>
                </tr>
            </table>
          </legend>
        </fieldset>
        <a class="btn btn-green" href="/ticket/questions/view/{{=object.old_id}}">查看原始问题</a>
        </div>
    </div>
</div>
<br/>

{{end}}
